<%= form_for(@questionnaire) do |f| %>
  <% if @questionnaire.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@questionnaire.errors.count, "error") %> prohibited this questionnaire from being saved:</h2>

      <ul>
      <% @questionnaire.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

 <div class="field">
	<p><%= label_tag 'Company' %><br/>
	<%= collection_select(:questionnaire, :company_id, Company.all, :id, :company_name) %>
 </div>

  <div class="field">
    <%= f.label :start_date %><br />
    <%= f.date_select :start_date %>
  </div>
  <div class="field">
    <%= f.label :end_date %><br />
    <%= f.date_select :end_date %>
  </div>
  <input type="hidden" id="questionnaire_location" name="location" value="" />
  <input type="hidden" name="locationUser" value="">
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
